import os

Import('env')

build_name = "module1"
source_files = Glob("src/*.c")

paths = ["inc"]
libs = []
libs_path = []

env.SharedLibrary(target = os.path.join(env['build_dir'], build_name),
        source  = source_files,
        CPPPATH = paths,        # 头文件
        LIBPATH = libs_path,    # 库目录
        LIBS    = libs,         # 库名称
        CCFLAGS = env['ccflags']
        )

env.StaticLibrary(target = os.path.join(env['build_dir'], build_name),
        source  = source_files,
        CPPPATH = paths,        # 头文件
        LIBPATH = libs_path,    # 库目录
        LIBS    = libs,         # 库名称
        CCFLAGS = env['ccflags']
        )